//
//  RecordsTableViewCell.m
//  Haliaeetus
//
//  Created by junli hou on 2018/4/30.
//  Copyright © 2018年 BMY. All rights reserved.
//

#import "RecordsTableViewCell.h"

@implementation RecordsTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self= [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = [UIColor whiteColor];
        
        UIImageView *lineView = [[UIImageView alloc]init];
        lineView.backgroundColor = WS_RGB(225, 225, 225);
        lineView.frame = CGRectMake(0,87.5,WS_SCREEN_FRAME_WIDTH,0.5);
        [self.contentView addSubview:lineView];
        
        [self.contentView addSubview:self.payTypeLab];
        [self.contentView addSubview:self.payDateLab];
        [self.contentView addSubview:self.payCountLab];
        [self.contentView addSubview:self.balanceLab];
        
    }
    return self;
}
- (UILabel *)payTypeLab{
    if (!_payTypeLab) {
        _payTypeLab = [[UILabel alloc]init];
        _payTypeLab.frame = CGRectMake(15,10,150,30);
        _payTypeLab.font = [UIFont systemFontOfSize:14];
        _payTypeLab.textColor = WS_RGB(102, 102, 102);
    }
    return _payTypeLab;
}

- (UILabel *)payDateLab
{
    if (!_payDateLab) {
        _payDateLab = [[UILabel alloc]init];
        _payDateLab.frame = CGRectMake(WS_SCREEN_FRAME_WIDTH-165,10,WS_SCREEN_FRAME_WIDTH-180,30);
        _payDateLab.font = [UIFont systemFontOfSize:14];
        _payDateLab.textColor = WS_RGB(102,102,102);
    }
    return _payDateLab;
}

- (UILabel *)payCountLab{
    if (!_payCountLab) {
        _payCountLab = [[UILabel alloc]init];
        _payCountLab.frame = CGRectMake(15,41,150,30);
        _payCountLab.font = [UIFont systemFontOfSize:24];
        _payCountLab.textColor = WS_RGB(51, 51, 51);
    }
    return _payCountLab;
}

- (UILabel *)balanceLab
{
    if (!_balanceLab) {
        _balanceLab = [[UILabel alloc]init];
        _balanceLab.frame = CGRectMake(WS_SCREEN_FRAME_WIDTH-165,43,WS_SCREEN_FRAME_WIDTH-180,30);
        _balanceLab.font = [UIFont systemFontOfSize:12];
        _balanceLab.textColor = WS_RGB(153,153,153);
    }
    return _balanceLab;
}




- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
